# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-elixir
pkgver=0_git20220110
_gitrev=de20391afe5cb03ef1e8a8e43167e7b58cc52869
pkgrel=2
pkgdesc="Elixir grammar for tree-sitter"
url="https://github.com/elixir-lang/tree-sitter-elixir"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/elixir-lang/tree-sitter-elixir/archive/$_gitrev/tree-sitter-elixir-$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
b12c9ec42d296e54d5be8f8d0ee36e126dc2e5305bda37c4f5d91dc42098fc72b94efbd048932b49bd09d6e77a5adfa9adac58de211755a2b8593f354f87896f  tree-sitter-elixir-de20391afe5cb03ef1e8a8e43167e7b58cc52869.tar.gz
"
